module.exports = app => {
  const { STRING } = app.Sequelize

  const BrandModel = app.model.define('brands_models', {
    id: {
      type: STRING(255),
      primaryKey: true
    },
    title: {
      type: STRING(32),
      allowNull: false
    },
    model: {
      type: STRING(32),
      allowNull: false
    }
  })
  
  // BrandModel.associate = function() {
  //   app.model.BrandModel.hasMany(app.model.Shop, {
  //     foreignKey: 'sid'
  //   })
  // }

  return BrandModel
}
